package com.maxd.utils;
import org.springframework.stereotype.Component;
@Component
public class Config {
    //全局的名字 支持动态
    public static String BASE_NAME = "灵系生活";
    //京东的url 静态死的
    public static String JD_URL = "https://router.jd.com/api";
    //京东的APPID 网站的id  支持动态
    public static String JD_APPID = "1858541389";
    public static String MT_URL = "https://openapi.meituan.com/api/orderList";
    public static String MT_Link="https://openapi.meituan.com/api/generateLink";
    public static String DXBUrl="https://api.smsbao.com/sms";
    //京东的key 支持动态
    public static String AppKey = "7c33b276835a990c63f06ff906566b9c";
    //京东秘钥 支持动态
    public static String Secret = "8d448c9c37de412e833fbfa0091c92ef";
    //http://openapi.weimohe.cn/ 京东授权的key 支持动态
    public static String KEYID = "J4657211368930104";
    //第三方的京东链接  http://openapi.weimohe.cn/index/index/openapi/id/57.shtml?ptype=2 不支持动态
    public static String MIAOYOUQUN_URL = "https://api.web.ecapi.cn";
    public static String url="http://gw.api.taobao.com/router/rest";
    //第三方 京东商品秘钥 支持动态
    public static String MIAOYOUQUN_Key = "f34388f6-141b-838b-465b-03216bec0534";
    //淘宝的key 网站的淘宝appkey 私域授权 淘口令获取 必须和移动端一致
    //https://pub.alimama.com/myunion.htm 支持动态
    public static String TaoAppKey = "27706268";
    public static String TaoSecret = "6505ff50b4d72c56fef583b2570593fa";
    //淘宝私域邀请码 支持动态
    public static String InviterCode = "HHH49S";
    //以下为公众号的消息推送配置 支持动态
    public static String appId = "wxb793be4e9400d6f2";                //appid 通过微信后台获取
    public static String appSecret = "01823d4e075d25e499d4b43a129a6250"; //微信公证号秘钥
    public static String mpAppId = "wx000faa7949e6b48c";                //appid 通过小程序后台获取
    public static String mpAppSecret = "e878cd95ada3384aae3d95e9a2c159c6"; //微信小程序秘钥
    public static String token = "maxd";            //通过微信后台获取
    public static String encodingAesKey = "O8T7NubxpjOd7uNoVV7g01PDpPGUWpiGrLWWIFyaaCH";        //EncodingAESKey(消息加解密密钥) 通过微信后台获取
    //邀请好友注册推送 邀请成功通知 支持动态配置
    public static String InvitaionNotification = "ShwvvIeB87HBWFeDDajXDInLcXXHATiZ-8r5IaVlAko";
    //提现通知模板ID
    public static String CashNotification = "lnFCZ3PaxVCwACtm0Hs58riMZprD667lZHpuP8eBcNI";
    //会员等级升级消息
    public static String ShengjiNotification = "yuAjPP6xa0SdM70AAck7uUeUxT3qwHemlUvOSlDoabI";
    //结算通知模板ID
    public static String JieSuanNotification = "7q321PkL6LC0E1qp3fjmjCTd30No3U0rkx930sT7_kw";
    //提现成功通知
    public static String TiXianSuccessNotification = "QgEp8MydRgnUWSw2i0mBUDLfgs8IhE6SsYzO0gVxwWE";
    //提现成功通知
    public static String TiXianRefundSuccessNotification = "Gw2zQM7nRyXleJYXgh1iV3BxaV9yvcLijd49OcIvB2U";
    //成为会员通知模板
    public static String RelationNotification = "RnyhXU3oEi8ueXmRjxF_4UyrD9JeHopcG8pbdNxBzMY";
    //新订单通知模板
    public static String orderNotification = "6THiSppG4_ZZuYzA8IL4IZxLJiLkLHQKrSGc1796IMY";
    //提现通知管理员的openid 支持动态
    public static String CashOpenId = "oI4ayjnKJqmTIh3pehub8aoPw8Pc";
    //管理平台配置 支持动态
    public static String CashAdmin = "http://tk.gomyorder.cn:8080";
    //淘宝授权的私域id 支持动态
    public static String publicRelation = "2242941210";            //淘宝授权后获取 可在淘宝联盟查看
    //腾讯云短信发送 需要申请验证码模板 支持动态
    public static String DXAppId = "1400255378"; // 1400开头
    public static String DXAppKey = "0180dbc9c5120a5fec54aad4043beac3";
    //拼多多的id和秘钥
    public static String clientId = "a345a18d6db348649f51913b8e35a939";
    public static String clientSecret = "2a79e98c8ae00841bf8caf2901527ca1f5117c97";


    public static String menuText(String url, String one, String name) {

        String s = "欢迎来到<a href=\"" + url + "/?invitation=" + one + "\">☞ " + name + "</a>\n" +
                "\n" +
                "-------------------------------\n" +
                "新人请先领免单 \n" +
                "\n" +
                "再看省钱教程，不仅能找隐藏券，还有高额返佣，能省50%的钱~\n" +
                "-------------------------------\n" +
                "\n" +
                "<a href=\"" + url + "/help/news.html\">☞点击查看省钱教程 >></a>\n" +
                "\n" +
                "☞ 复制【 商品标题或商品链接 】发送至【公众号】获取优惠券信息\n";
        return s;
    }

    public static String menuText2(String from) {
        String s = "@" + from + "\n" +
                "☞ 红包福利\n" +
                "-------------------------------\n" +
                "<a href=\"$Fzv2YDOggqL$\">☞ 长按我【复制链接】到【手机淘宝】即可领取</a>" +
                "-------------------------------\n";
        return s;
    }

    public static String menuText1(String from, String link) {
        return "@" + from + "\n" +
                "已为您找到相关优惠\n" +
                "-------------------------------\n" +
                "<a href=\"" + link + "\">☞ 点我马上购买 >></a>\n" +
                "-------------------------------\n" +
                "人工客服，请点右下角";
    }

    public static String menuText2(String from, String link) {
        return "未能找到您需要的商品\n" +
                "-------------------------------\n" +
                "☞ 请发送【商品标题】至公众号查询 >>\n" +
                "-------------------------------\n" +
                "人工客服，请点右下角";
    }

    public static String sendCustomer(String openid, String title, String description, String url, String image) {
        return "{\n" +
                " \"touser\":\"" + openid + "\",\n" +
                " \"msgtype\":\"news\",\n" +
                " \"news\":{\n" +
                "  \"articles\": [\n" +
                "   {\n" +
                "    \"title\":\"" + title + "\",\n" +
                "    \"description\":\"" + description + "\",\n" +
                "    \"url\":\"" + url + "\",\n" +
                "    \"picurl\":\"" + image + "\"\n" +
                "   }\n" +
                "   ]\n" +
                " }\n" +
                "}";
    }


}
